/**
 * @author sinans
 */
Ext.application({
	autoCreateViewport : false,
	appFolder: 'egitimapp',
    name: 'Egitim',
	models: ['Katilimci'],
	requires: ['Egitim.lib.Utility', 'Egitim.lib.Date'],
	controllers: ['KatilimciCtrl'],
    launch: function() {
	
    	var katForm = Ext.widget('katilimciform', {
        	region: 'center',
        	style: 'width: 700',
        	height: 350,
        	border: false
        });
    	katForm.getForm().findField('grup').setVisible(false);
    	katForm.render('kat-form-id');
    	/*
        Ext.create('Ext.container.Viewport', {
            //layout: 'fit',
            padding: '10 200 200 200',
            layout: 'border',
            bodyPadding: '30',
            style: 'background: #FFFFFF',
            border: false,
            defaults: {
            	border: false
            },
            items: [
                {
                	region: 'north',
                	html: 'Projesi katılım formu'
                },
                katForm
            ]
        });
        */
    },
	
	init: function (application){
		
		Ext.Loader.setConfig({
			enabled: true,
			paths: {
				'Egitim': 'lib'
				//'Ext.calendar' : 'abc'
			}
		});
		Ext.Loader.setPath('Ext.chooser', 'extjs/view/chooser');
		
		Ext.QuickTips.init();
        Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
        if (console)
        	console.log (application.name + ' inited');
	}
	
});